package com.example.index.service;

import com.example.index.entity.SchoolCooperationPictures;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * 校企合作 产教融合(SchoolCooperationPictures)表服务接口
 *
 * @author makejava
 * @since 2023-08-29 15:32:22
 */
public interface SchoolCooperationPicturesService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SchoolCooperationPictures queryById(Integer id);

    /**
     * 分页查询
     *
     * @param schoolCooperationPictures 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<SchoolCooperationPictures> queryByPage(SchoolCooperationPictures schoolCooperationPictures, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param schoolCooperationPictures 实例对象
     * @return 实例对象
     */
    SchoolCooperationPictures insert(SchoolCooperationPictures schoolCooperationPictures);

    /**
     * 修改数据
     *
     * @param schoolCooperationPictures 实例对象
     * @return 实例对象
     */
    SchoolCooperationPictures update(SchoolCooperationPictures schoolCooperationPictures);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

}
